<%--
  Created by IntelliJ IDEA.
  User: glxyC113
  Date: 2021/11/15
  Time: 10:50
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://"
            + request.getServerName() + ":" + request.getServerPort()
            + path + "/";
%>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>药品分发</title>
    <link href="<%=basePath%>css/style.css" rel="stylesheet" type="text/css" />
    <link href="<%=basePath%>css/bootstrap.min.css" rel="stylesheet" type="text/css">
    <script type="text/javascript" src="<%=basePath%>js/jquery.min.js"></script>
    <script type="text/javascript" src="<%=basePath%>js/rl.js"></script>
    <script type="text/javascript">
        function ypff(id){
            window.location.href="<%=basePath%>ypffController?id=" + id;
        }
        $(function(){
            $('tbody tr:odd').addClass("trLight");

            $(".select-all").click(function(){
                if($(this).attr("checked")){
                    $(".checkBox input[type=checkbox]").each(function(){
                        $(this).attr("checked", true);
                    });
                }else{
                    $(".checkBox input[type=checkbox]").each(function(){
                        $(this).attr("checked", false);
                    });
                }
            });

        });
    </script>
    <style type="text/css">
        body {
            background:#FFF
        }
    </style>
</head>

<body>
<div id="contentWrap">
    <!--表格控件 -->
    <form action="<%=basePath%>ypffListController" method="post" name="form1">
    <div id="widget table-widget">
        <div class="pageTitle">药品发放</div>
        <div class="querybody">
            <ul class="seachform">
                <li><label>挂号号</label><input name="" type="text" class="scinput" /></li>
                <li><label>会员ID</label><input name="" type="text" class="scinput" /></li>
                <li><label>&nbsp;</label><input name="" type="submit" class="scbtn" value="查询"/></li>
            </ul>
        </div>
        <div class="pageColumn">
            <div class="pageButton"><span>待发放药品列表</span></div>
            <table>
                <thead>
                <th width="">挂号号</th>
                <th width="">会员ID</th>
                <th width="">诊断人</th>
                <th width="">诊断时间</th>
                <th width="10%">开药信息</th>
                </thead>
                <tbody>
                <c:forEach items="${roList}" var="ro">
                    <tr>
                        <td>${ro.roid }</td>
                        <td>${ro.memberid }</td>
                        <td>${ro.docname }</td>
                        <td>
                            <fmt:formatDate value="${ro.rotime}" pattern="yyyy-MM-dd"/>
                        </td>
                        <td>
                        <a onclick="ypff('${ro.roid }')"><img src="<%=basePath%>images/icon/edit2.png" width="16" height="16" /></a>
                        </td>
                    </tr>
                </c:forEach>
                </tbody>
            </table>
        </div>
    </div><!-- #widget -->
    <div id="pagination" style="align:right;margin-top:-10px;">
        <div id='project_pagination' class="pagination pagination-centered">
            <div class="pagination">
                <ul>
                    <li class="disabled"><a href="#">«</a></li>
                    <li class="active"><a href="#">1</a></li>
                    <li><a href="#">2</a></li>
                    <li><a href="#">3</a></li>
                    <li><a href="#">4</a></li>
                    <li><a href="#">»</a></li>
                </ul>
                <ul>
                    <li><span>(1-10/38)</span></li>
                    <li><span>显示条数&nbsp;:&nbsp;</span></li>
                </ul>
                <ul>
                    <li class="active"><a href="#">10</a></li>
                    <li class=""><a href="#">30</a></li>
                    <li class=""><a href="#">50</a></li>
                </ul>
            </div>
        </div>
    </div>
    </form>
</div>
</body>
</html>
